package Java;

public class work22 {
	public static void main(String[] args){
		int result = fn(5);
		System.out.println("5!="+result);
	}
	public static int fn(int x){
		if( x==1){
			return 1;
		}else{
			return x*fn(x-1);
		}
	}
}
